package com.td.module.member.controller.admin.appMemberUser.vo;

import com.td.framework.desensitize.core.slider.annotation.MobileDesensitize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.td.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - app用户 Excel 导出 Request VO", description = "参数和 AppMemberUserPageReqVO 是一致的")
@Data
public class AppMemberUserExportReqVO {

    @ApiModelProperty(value = "用户昵称", example = "JinRui")
    private String nickname;

    @ApiModelProperty(value = "用户类别", example = "1")
    private Integer type;

    @ApiModelProperty(value = "状态", example = "2")
    private Integer status;

    @ApiModelProperty(value = "手机号")
    @MobileDesensitize
    private String mobile;

    @ApiModelProperty(value = "最后登录时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] loginDate;

    @ApiModelProperty(value = "是否实名认证")
    private Integer isAuth;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
